package com.fh.feign;

import com.fh.fallback.StatusUpdateClientFallback;
import com.fh.fallback.TimeoutQueryClientFallback;
import com.fh.model.Orders;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "order-status-update",fallback = StatusUpdateClientFallback.class)
public interface StatusUpdateClient {

    @PutMapping("static/update")
    public  int  update(@RequestBody Orders orders);

}
